﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="StuZaiXiaoList.aspx.cs" Inherits="Sagacity.NC.Web.BasicSettings.Student.StuZaiXiaoList" %>

<%@ Register Src="~/Form/TabFormCommon.ascx" TagName="TabFormCommon" TagPrefix="uc1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>学生信息列表</title>
    <link href="../../resources/css/examples.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        var SignOnClick = function() {
            Ext.MessageBox.confirm('注意', '是否批量签字？', function(btn) {
                if (btn == 'yes') {
                    Coolite.AjaxMethods.btnSignOnClick({
                    success: function(result) {
                    if (result) {
                        Form$ReloadData();
                            Ext.Msg.alert("提示", "批量签字成功！" );
                              
                            }
                else
                    Ext.Msg.alert("提示","批量签字失败！");
            }, eventMask: {
                showMask: true,
                msg: '正在执行...'
            }, timeout: 60000
                    });
                    }                
            });
        }
    
    
        ///学校编号
        var selschoolId = 0;
        /*-----显示方法名称，设置时在TabFormCommon1中调用，指定GridPanel行单击详细信息列和双击时应该调用的方法-----*/
        var showFunctionName = 'showStudentDetailInfo()';

        /*-----TabFormCommon1中调用的方法-----*/
        function showStudentDetailInfo() {
            var xmlTabInfo = "<root><tab id='orderTab32' name='学生信息' url='StuZaiXiaoDetailInfo.aspx'></tab></root>";
            self.parent.addTabs1(self.parent.tabInfoTabs, xmlTabInfo, "", "ResourceId=" + document.getElementById("hidResourceId").value +  "&StudentId=" + Form$getKeyValue());
        }

        function refreshStudentInfo(schoolId, gradeId) {
            selschoolId = schoolId;
            if(schoolId == undefined)
                return;
            var filterstr = "";
          var tablenaem=  self.parent.document.getElementById("hidTableName").value;
        var SchoolResourceId =   self.parent.document.getElementById("hidSchoolResourceId").value;
        if (gradeId != 0) {
            filterstr += "Grade_ID$=$" + gradeId + ";INTTYPE$in$1,3;";
            Form$SetFilters(filterstr);
            Form$ReloadData();
        }
        else {
            Coolite.AjaxMethods.getSchoolClass(schoolId, tablenaem, SchoolResourceId, {
                success: function(result) {
                filterstr = result;
                Form$SetFilters(filterstr);
                Form$ReloadData();
                },

                failure: function(errorMsg) {
                    Ext.Msg.alert('节点加载失败', errorMsg);
                }
            });
        }
        }
    </script>
    
    <script type="text/javascript" language="javascript">
        /* -----------新增，设置新增加数据的时候跳转页面到下一级页面，并且给出的数据位空。-------------*/
        var showFunctionAdd ='showStuFunctionAdd()';
        var showStuFunctionAdd = function()
        {
            var params = "";
            if(typeof(self.parent.getParamters) != undefined){
                var resourceId = document.getElementById("hidResourceId").value;
                var showStyle = 2;
                params = self.parent.getParamters();
                params += "&action=add&ResourceId=" + resourceId + "&showStyle=" + showStyle + "&controlType=1";
             }
             var xmlTabInfo = "<root><tab id='orderTab32' name='新增学生信息' url='StudentBaseInfo.aspx'></tab></root>";
             self.parent.addTabs1(self.parent.tabInfoTabs, xmlTabInfo, '', params );
        }
    </script>
    
    <script type="text/javascript">
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hidResourceId" runat="server" Value="153" />
    <!--记录下是学校还是班级-->
    <asp:HiddenField ID="hidPara" runat="server"  />
    <asp:HiddenField ID="hidtype" runat="server" />
    <div>
        <!--配置信息-->        
        <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
        <ext:ViewPort ID="viewport1" runat="server">
            <Body>
                <uc1:TabFormCommon ID="TabFormCommon1" PageSize="0"  SureExport="true" runat="server" MenuId="1119" />
            </Body>
        </ext:ViewPort>
    </div>
    </form>
</body>
</html>